package com.zjsru.mapper;

import com.zjsru.pojo.Order;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface OrderMapper {
    
    @Select("SELECT * FROM orders WHERE id = #{id}")
    Order findById(Long id);
    
    @Select("SELECT * FROM orders")
    List<Order> findAll();
    
    void insertOrder(Order order);
    
    void updateOrder(Order order);
    
    void deleteOrder(Long id);
}